package cn.tedu;

import java.sql.Connection;
import java.sql.SQLException;
import java.sql.Statement;

public class Demo05 {
    public static void main(String[] args) {
        try ( Connection conn = DBUtils.getConn();
        ){
            //创建SQL语句执行对象
            Statement s = conn.createStatement();
            s.executeUpdate("create table hero(id int primary key auto_increment,name varchar (50),money int ) ");
            System.out.println("执行完成！");
        } catch (SQLException throwables) {
            throwables.printStackTrace();
        }
    }
}
